package com.wudi.estate.mapper.admin;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wudi.estate.bean.admin.Role;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface RoleMapper extends BaseMapper<Role> {
    // 查询全部数据
    List<Role> selectAll() throws Exception;

    // 根据角色id查询角色对应权限的id
    List<Long> selectPIdsByRId(long id) throws Exception;

    // 插入数据
    void insert1(Role role) throws Exception;

    Role selectById(int id) throws Exception;
}
